<template>
  <FormItem label="边框大小">
    <InputNumber
      :value="value ? parseInt(value): 0"
      placeholder="请输入边框大小"
      @on-change="v=>{changeValue(v)}"
    />
  </FormItem>
</template>

<script>
export default {
  props: ['value'],
  data () {
    return {};
  },
  methods: {
    changeValue (value) {
      this.$emit('updateValue', {
        value: value + 'px',
        name: 'borderWidth'
      });
    }
  }
};
</script>
